package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

/**
 * @author gakki
 * @create 2022/5/2 16:49
 */
public interface DishService extends IService<Dish> {
    /**
     * 菜品和菜品口味表保存
     * @param dishDto
     */
    void saveWithFlavor(DishDto dishDto);

    /**
     * 根据dish id查询dishDto
     * @param id
     */
    DishDto queryByDishId(Long id);

    /**
     * 跟新菜品及口味
     * @param dishDto
     */
    void updateWithFlavor(DishDto dishDto);
}
